package com.java.imauoj.moudel;

import java.util.Date;

public class Problem<T> {

    private int problem_id;
    private String problem_type;
    private String title;
    private String description;
    private String hint;
    private String source;
    private String tag;
    private String in_date;
    private String is_defunct;
    private int accepted;
    private int submit;
    private int hard;

    private T type;
    public Problem() {
    }

    public Problem(int problem_id, String problem_type, String title, String description, String hint, String source, String tag, String in_date, String is_defunct, int accepted, int submit, int hard, T type) {
        this.problem_id = problem_id;
        this.problem_type = problem_type;
        this.title = title;
        this.description = description;
        this.hint = hint;
        this.source = source;
        this.tag = tag;
        this.in_date = in_date;
        this.is_defunct = is_defunct;
        this.accepted = accepted;
        this.submit = submit;
        this.hard = hard;
        this.type = type;
    }

    public int getProblem_id() {
        return problem_id;
    }

    public void setProblem_id(int problem_id) {
        this.problem_id = problem_id;
    }

    public String getProblem_type() {
        return problem_type;
    }

    public void setProblem_type(String problem_type) {
        this.problem_type = problem_type;
    }

    public String getTitle() {
        return title;
    }

    public void setTitle(String title) {
        this.title = title;
    }

    public String getDescription() {
        return description;
    }

    public void setDescription(String description) {
        this.description = description;
    }

    public String getHint() {
        return hint;
    }

    public void setHint(String hint) {
        this.hint = hint;
    }

    public String getSource() {
        return source;
    }

    public void setSource(String source) {
        this.source = source;
    }

    public String getTag() {
        return tag;
    }

    public void setTag(String tag) {
        this.tag = tag;
    }

    public String getIn_date() {
        return in_date;
    }

    public void setIn_date(String in_date) {
        this.in_date = in_date;
    }

    public String getIs_defunct() {
        return is_defunct;
    }

    public void setIs_defunct(String is_defunct) {
        this.is_defunct = is_defunct;
    }

    public int getAccepted() {
        return accepted;
    }

    public void setAccepted(int accepted) {
        this.accepted = accepted;
    }

    public int getSubmit() {
        return submit;
    }

    public void setSubmit(int submit) {
        this.submit = submit;
    }

    public int getHard() {
        return hard;
    }

    public void setHard(int hard) {
        this.hard = hard;
    }

    public T getType() {
        return type;
    }

    public void setType(T type) {
        this.type = type;
    }

    @Override
    public String toString() {
        return "Problem{" +
                "problem_id=" + problem_id +
                ", problem_type='" + problem_type + '\'' +
                ", title='" + title + '\'' +
                ", description='" + description + '\'' +
                ", hint='" + hint + '\'' +
                ", source='" + source + '\'' +
                ", tag='" + tag + '\'' +
                ", in_date='" + in_date + '\'' +
                ", is_defunct='" + is_defunct + '\'' +
                ", accepted=" + accepted +
                ", submit=" + submit +
                ", hard=" + hard +
                ", type=" + type +
                '}';
    }
}
